package com.wobito.common.constants;

/**
 * @Author Wangbaba
 * @Date 2024/4/19 16:17
 * @Version 1.0
 */
public class SysConstants {
    /**
     * 系统码状态
     */
    //成功
    public static final Integer OK_CODE = 200;

    /**
     * 所有柜子(0表示)
     */
    public static final Integer SYSTEM_STATE_ALL = 0;

    /**
     * 开关门操作类型
     */
    //关门
    public static final Integer STATE_TYPE_CLOSE = 0;
    //开门
    public static final Integer STATE_TYPE_OPEN = 1;
    //异常
    public static final Integer STATE_TYPE_ERROR = 2;

    /**
     * 系统状态
     */
    //正常
    public static final Integer STATE_SYSTEM_ZC = 0;
    //停用
    public static final Integer STATE_SYSTEM_TY = 1;

    /**
     * websocket操作类型
     */
    //启用柜子
    public static final String ENABLE_CABINET_STATE = "enableCabinet";
    //停用柜子
    public static final String STOP_CABINET_STATE = "stopCabinet";
    //检查柜子
    public static final String CHECK_CABINET_STATE = "checkCabinet";
    /**
     * 文件状态
     */
    //在库
    public static final Integer STATE_FILE_ZK = 0;
    //取出
    public static final Integer STATE_FILE_QC = 1;

    /**
     * 借还状态
     */
    //借
    public static final Integer BOOK_TYPE_JY = 0;
    //还
    public static final Integer BOOK_TYPE_GH = 1;

    /**
     * 借阅日志
     */
    public static final Integer BORROW_TYPE = -1;

    /**
     * 普通角色
     */
    public static final Integer PT_USER_ROLE = 2;

    /**
     * 归还类型
     */
    //顺期
    public static final Integer ORDINARY_RETURN_TYPE = 0;
    //逾期
    public static final Integer OVDRDUE_RETURN_TYPE = 1;
    //续期
    public static final Integer RENEWAL_RETURN_TYPE = 2;
    //管理
    public static final Integer MANAGE_RETURN_TYPE = 3;
    //盘存
    public static final Integer INVENT_RETURN_TYPE = 4;

    /**
     * 无权限提醒
     */
    public static final String SYSTEM_NO_AUTH = "用户帐号已被锁定";

}
